package Model;

import Controller.ActionManager;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author pieterc
 */
public class RefreshDaemon extends Thread {

    @Override
    public void run() {
        super.run();
        try {
            while (true) {
                ActionManager.getRemote().refresh();
                sleep(60000); //every minute
            }
        } catch (InterruptedException ex) {
            Logger.getLogger(RefreshDaemon.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
}
